import request from '@/utils/request'

const api_name = '/teach/front/course'
export default {
  //查询课程列表
  pageCourseList(current, limit, courseFrontQuery) {
    return request({
      url: `${api_name}/pageList/${current}/${limit}`,
      method: 'post',
      data: courseFrontQuery
    })
  },

  //查询所有分类
  querySubjectList() {
    return request({
      url: `/teach/subject/getSubjectList`,
      method: 'get'
    })
  },

  //根据课程id查询课程信息
  getCourseInfo(courseId) {
    return request({
      url: `${api_name}/getById/${courseId}`,
      method: 'get'
    })
  }

}
